package factory;

import java.util.ArrayList;
import java.util.List;

public abstract class Tray extends Item {

    protected List<Item> itemList = new ArrayList<Item>();

    public Tray(String caption){
        super(caption);
    }

    public void addItem(Item item){
        this.itemList.add(item);
    }

    public List<Item> getItemList() {
        return itemList;
    }
}
